﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace String
{
    class Duplicate
    {
        public string value;
        public int duplicatesCount;
        
        public static Duplicate newDuplicate(string value, int duplicatesCount)
        {
            Duplicate newDuplicate = new Duplicate();
            newDuplicate.value = value;
            newDuplicate.duplicatesCount = duplicatesCount;
            return newDuplicate;
        } 
    }
}
